package com.zhongya.example.view.second

import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout

class MyView : androidx.appcompat.widget.AppCompatImageView {

    val colorMatrix = ColorMatrix(
            floatArrayOf(
                    0.213f,0.715f,0.072f,0f,0f,
                    0.213f,0.715f,0.072f,0f,0f,
                    0.213f,0.715f,0.072f,0f,0f,
                    0f,0f,0f,1f,0f,
            )
    )

    var mBitmap : Bitmap? = null
    var mCanvas : Canvas? = null
    var mPaint : Paint? = null



    constructor(context: Context) : super(context) {
    }

    constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) {


    }





}